﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>@ViewBag.Title</title>	
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
	<link href="@Url.Content("~/Content/themes/base/all.css")" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-2.1.1.min.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-ui-1.8.11.min.js")"></script>
	<script type="text/javascript" src="@Url.Content("~/Scripts/main.js")"></script>
	<script type="text/javascript" src="@Url.Content("~/Scripts/jtip.js")"></script>
	@*<script type="text/javascript" src="@Url.Content("~/Scripts/jquery.cleditor.min.js")"></script>*@
	<!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/ie6.css")" media="screen"/><![endif]-->
	@RenderSection("Header", false)
    <script type="text/javascript">
        $(function () {
            $(".datepicker").datepicker();
        });
    </script>
</head>

<body class="inner-page">
<div id="pagewidth">
	<div class="pagewidth-right">
		<div class="pagewidth-left">
			<!--main start-->
			<div id="main">
				<!--header start-->
				<div id="header">
					<!--header-main start-->
					<div class="header-main">
							<h1 class="logo"><a href="@Url.Content("~/")">Microsoft Eneta</a></h1>
							@if(User.Identity.IsAuthenticated)
							{
								@Html.Partial("_AuthUserBlock");
							}
							else
							{                            
								@Html.Partial("_AnonUserBlock");
							}
					</div>
					@Html.Action("TopMenu", "DynamicMenuMng")
				</div>

				<div id="content-area">
					<!--content start-->
					<div id="content"> 
						<span class="content-top">&nbsp;</span>
						<!--content-main start-->
						<div class="content-main">
                            @Html.Action("LeftMenu", "DynamicMenuMng")
					@*		<div class="side-nav">
								<ul>
									@{
										var activeClass = "";
										if (ViewContext.Controller.GetType().Name.StartsWith("Article"))
										{
											activeClass = "active";
										}
										else
										{
											activeClass = "";
										}
									}
									<li class="@activeClass"><a href="@Url.Content("~/news/articles/")">@Resources.EnetaMvc.Articles</a></li>
									@{
										if (ViewContext.Controller.GetType().Name.StartsWith("Blog"))
										{
											activeClass = "active";
										}
										else 
										{
											activeClass = "";
										}
									}
									<li class="@activeClass">
										<a href="@Url.Content("~/news/blogs/posts/")">@Resources.EnetaMvc.Blogs</a> 
										@{ Html.RenderPartial("_BlogsPanel"); }
									</li>
								</ul>
								<h5><a href="#">@Resources.EnetaMvc.Tags</a></h5>
							</div> *@
							<div class="content-txt">
								@RenderBody()
							</div>
						</div>
						<span class="content-bottom">&nbsp;</span>
					</div>
					<div id="sidebar">
						@{ Html.RenderPartial("_SidebarLearning"); }
						@{ Html.RenderPartial("_SidebarEvents"); }
						@{ Html.RenderPartial("_SidebarUsers"); }
						@*@{ Html.RenderPartial("_SidebarCompanies"); }*@
						@{ Html.RenderPartial("_SidebarRss"); }
						@{ Html.RenderPartial("_SidebarSocial"); }
					</div>
				</div>

				@{ Html.RenderPartial("_Footer"); }
						
			</div>
		</div>
	</div>
</body>
</html>